package fun.easycode.webterminal.service.dto;

import fun.easycode.webterminal.common.datafill.FillField;
import fun.easycode.webterminal.common.datafill.FillSource;
import fun.easycode.webterminal.dao.MachineGroupMapper;
import fun.easycode.webterminal.dao.MachineType;
import lombok.Data;

@Data
public class MachineDTO {
    private String id;
    private String groupId;

    @FillField(queryPk = "groupId"
            , source = @FillSource(value = MachineGroupMapper.class, sourceProperty = "name"))
    private String groupName;

    private String name;

    private String ip;
    private Integer port;
    private String username;
    private String password;

    private MachineType type;
    private String publicKey;

    private Boolean isJump;
    private String jumpMachineId;
}
